package com.loong.seller.common.backend.param;

import com.loong.common.validator.group.CommonInsert;
import com.loong.common.validator.group.CommonUpdate;
import lombok.*;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Description:
 * @Author: hzp
 * @Date: 2020-12-3 9:30
 */
@ToString
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class ShopTypeParam {

    @NotNull(groups = {CommonUpdate.class},message = "id不能为空")
    private Long id;

    /**
     * 店铺类型名称
     */
    @NotBlank(groups = {CommonInsert.class},message = "店铺类型名称不能为空")
    private String shopTypeName;

    /**
     * 描述
     */
    private String remark;

    /**
     * logo
     */
    @NotBlank(groups = {CommonInsert.class},message = "logo不能为空")
    private String logo;

    /**
     * 用于区分商城 外卖 等 目前 1-代表外卖 ，2-代表商城
     */
    @NotNull(groups = {CommonInsert.class},message = "所属类型不能为空 不能为空")
    private Integer type;

    /**
     * 启用状态
     */
    @NotNull(groups = {CommonInsert.class},message = "启用状态 不能为空")
    private Boolean status;
}
